Fix some tests
comment the code a bit
more tests
add deterministic sorting sum
test now works OK with deterministic sort order