Fixed double formatting issue
Added an integration test that uses prettyPrintTo()
Added integration test with YQL data