generalized a test case