* improve test suite (port to Perl 5 for stability and maintainability)