added unit test for admin_controller