ldb: tests for <= and >= integer indexing with duplicates