A systems approach to educational testing