fix tests to not use hardcoded \n, but line.separator instead