Fixes testHasEnded