fix test code stripping