Added some ExcelManager tests, fixed bugs.

Refactored some of ExcelManager due to test results.