Add missing range function in the tests