fixing tests to run with newer versions of ruby