Add unit test for REST URL