Added test to verify Diagnostics reference disposal
Added test to verify Diagnostics works after copy errors
Decode Diagnostics result on Python 3