Issue #677: Set back reference when calling add
Provided tests for testing if all references are set for crossreferences before saving
clone object in hashCode() function so the original object is not changed when calling hashCode
provided test for the hasCode() function
Expected and actual values where in wrong order
Merge pull request #678 from Danez/master

Fix for issue #677: Set the back reference