assertError. delete helper