Additional tests for user controller

This changes should not be in this pull request. Pls change the name of the pull request or create a new one.