corrected a bug in function models::users::is_admin , and added a unit test test for it