Moving ocunit2junit logic and test_ouput logic to test class