add unittest for users method