updated custom assertion behavior