tests for closed range