Tests for method dropWhileEnd().