Add warnings in generated tests