Fixed issues on AdminController test cases.

Fixed issues on AdminController test cases.