Extending junit test cases from output compare testing.
Adapting output compare algorithm to latest junit tests.