Added more tests for REST