Skip tests that require Fileinfo if it's not there

Test suite fails if Fileinfo isn't installed and mime_content_type() isn't available. I don't know whether this is a bug in the mimetype guesser or an oversight in the test suite. In the meantime, skipping tests lets the test suite finish.