Add test case for REST interface