Fix range test