Adding some tests for the REST request