unit test for admin functions