fixed unittest.pl - more portable