Add test for RubyHash factory methods