Add a %check section if a testsuite is found

Either a 'test_suite' parameter to setup() is present or a file whose
nam includes "test" (very cheese, I know).