Added REST request support to test-in-phantom