add error properties so test frameworks can show diffs etc. Closes #65