added Test for reachedEnd()