added tests for user controller and model