Fixed broken test typo.
Added test to confirm sort order is kept
New approach to transactions with added cleanup
procedure. Not working yet.