Perl: change test stub to use subtests and require_ok