Rewrite test for multiple ruby compatibility