Fix issue with new error properties on nested errors
Add first unit test for new error properties