[tests] fixed: do not try to run core if it has already been disposed