Fix cd error on test for failure