Add unittests for Relationships