Modify test for results with mime-type-encoding
Add resolving by extension.

e.g. hoge.jpg => image/jpeg