Fixed test when comparing strings with new line character