Added tests for the REST API