add tests for user controller