added test for negative ranges