Added tests for range validator