Added tests for equality, copying and coding