Added missing import.
Adding simple test cases to MIME functionality.