Using keyrange.py in unit tests.