Ensure exceptions from JUnit tests are logged
Merge pull request #2517 from jroper/junit-test-error-cause

Impossible to tell what line cause test failure