Fixed issues on AdminController test cases.