Don't use BasicFormatter in Query tests
Add test to verify single newline is not stripped