Extending & refactoring of output compare algorithm.
Refactoring of jUnit test cases.