added tests for admin controller