Test hasEnded method

Contributor: Philipp Baumann and Christopher Knapp