Make spool threshold configurable; add OrderByTest
Make spool threshold configurable; add OrderByTest