Unit testing for admin login