Fix relationship tests to work with generated node id