added test coverage to user controller spec