Adding tests for the REST api.