Simplifying keyrange in tests.