add test case for remote api