Prevent error trap running test tasks.
Prevent error trap running test tasks.

Running each test task in an if statememt prevents the error trap from
firing, meaning we can report the status correctly to Github.

alphagov/collections,alphagov/collections,alphagov/collections,alphagov/collections