Fixed users#search ability and added more tests for users.