improve array test