* Fixed a couple of platform-dependent paths in the tests. * Constant-ized the magic numbers used when guessing formats. * Added a test for the format guessing.