Read optional 'name' property from failure

This allows to pass in a custom name which is used
in the junit xml report.
Merge pull request #967 from davidlinse/allow-custom-test-case-names-in-junit-report

refs #966 - read optional 'name' property from failure