Make tests OS newline independent.

Signed-off-by: Egon Willighagen <egonw@users.sourceforge.net>