Added Perl Critic tests and made existing tests more dynamic