Merge @a:exists tests into a single file