made little refactoring on lrange test