add unit test for range
pass unit tests for range