Fixed bug in KeepSortedRows; Added another simple test file