Added tests for ranges