Some tests for users controller, and fixed users#index

Some tests for admin/users controller.And fixed bug in admin/users #index