example reporting for junit tests - fixed a failing test case and refactored some code.