fixing tests
generalize ruby version