test: compare sorted lists