Unit tests for sorting added, new lib/selection method grid_select for changing grid selections