add edge case tests for lowerBound and upperBound