minor compilation fixes
added limit and slice
test_ordering
more tests