Convert to use of t/test.pl

Patch supplied by Marcel Gruenauer.

For: RT #116511