fixing integration tests to properly test XML and JSON results