added tests for .isEnded()