Read optional 'name' property from failure

This allows to pass in a custom name which is used
in the junit xml report.