t: Apply critic to test scripts

... except perl code in actual test cases.

Signed-off-by: Niels Thykier <niels@thykier.net>