discovery: add tests for sortableNodes