ldb: tests for <= and >= integer indexing