added integration test for xor gateway