fixed bugs
Added Integration and unit test for Relation Manager