style fixes
fix xunit NaN on failure. Closes #894