Optimal Test Design Linear Models