test: extract middle new line message case