Add CTF test to assert that self-referential relations work as designed.
Initial patch (rough version). Basically, more assert() statements need to be added all over the place, and new tests should be aded as well (e.g. testUpdateReation),
Surprisingly, the test attached reveal that the basic functionality is in place, and that the basic operations (create, load and update) seem to work without problems, and that includes extend hierarchies.
Updated patch, with all test related files moved to src/tests and src/tests/resources and assertions added all over the place.