Removing platform specific newlines from tests