fix newline bug in tests