Allow Perl-style regex filters for tests

Perl-style regular expressions are currently not allowed in the `filter` argument to `test_dir`, `test_package`, and `test_check`. This pull request adds a `perl` argument (logical, default `FALSE`) that enables Perl-style regular expressions, which is passed down to `grepl`.