Add more unit tests to RubyDir