Feature/test model issue

Refactor tests: add setupRelations().
Add test: testRelationPrecedes() (Work in progress)