added tests for adminController.