check errors array in test