moved admin check, added test to admin spec