Adds a test for Sort nodes