Added more tests for Admin.php