Test range in list.py