Why have both Perl and C tests?