bug fixes and test for ear file format