test: extract multiple same messages in a file test