terminal interface for test