Problem: Partial test fails on windows. Solution: Return 1 or -1 from compare function.
Problem: Passing cookie to a callback is clumsy. Solution: Change function() to take arguments and return a partial.