added mime type test for blank type. and small refactor