Add test for RubyArray factory methods