added subset 4 tests
added 'next' translation, fixed test script to work with stdins, refactored perl code handling method