add test for converting Perl to R