Upgrade dependencies and update users endpoint to work with tests