Added tests for adding and removing relations
Added purge on failed save and validations inc tests
Added purge on objects first save and fixed tests
Merge branch 'master' into add_tests