Correcting deprecated method use in arrays test