add test for unknown fragments in chain.format
improve test_show_fragments