Fixes test to ensure a clean state of test fails