Refactored nl_convert tests to make JRuby happy.