Create test code