replace bad assertion to.be.ko