[tests] fix some array testcases failing under windows