Added additional tests for REST api.