More unit tests, especially for new object relations submodule