add tests for IdentifyEnding