Add more tests for RubyIO