Update gems and fix failing tests