tests: skip perl tests if NO_PERL is defined