add test case for user api