allow different ruby versions and fix tests