Add some tests for the user controller