structure of test code