Make Perl testing more like Python testing.

Supports run_test.pl, and uses test/import section of meta.yaml
to list out import tests for Perl.