first version of test code