Better tests for ranges