core: fix a ko reset bug and extend the simpleKo unit test to cover it