create test cases for maintain relationship between nodes