upgrade gems, and fix tests