Update of unit test to be compatible with earlier ruby versions