Fixed 'random' test failing bug. Now converter uses separate HashSets for each relation type.