Changed the test to call the REST API