add unit test for range template