Test System Design: A Systematic Approach