Implement user controller methods and add some more tests.