Add tests for mime type guessing
Dump test log after tests