Add tests for User controller and provider