fixed test for ranges