Added a test for a method has_admin_rights