cleanup test code