added users api, and test case