Fixed test cases after enabling preserve whitespace for script tags