Use six.xrange in tests.