added tests for users controller