implement tests for BNSortedTable