test class for admin