Correct incorrect conditional

This conditional was wrong, the test had been changed from having a plan
to done_testing which allowed it to leak through