added couple tests to unittest and addRelationEntity() to engine