fix junit test cases
major changes to sync Emma and Jacoco code coverage analyzer, may common codes are moved up to super class, both classes should have the same behaviours