tests for admin controller