Fix buffer overflow issue in valarray test