added test for user api