add TestCase for empty mime
fix for empty case bug