Add tests which pass each format's sample data to all the other handlers

This ensures none of the format handlers recognise each other's data as
instances of their own file format.

Some isInstance() changes are also included to make format detection more
accurate, so the tests all pass.