Replace generated test classes with explicit declarations.