CFY-1433 fix bug in relationships removal and add test to rest service for node instance addition