fix tests for 2.x rubies version