Add test for RubyHash::replace