Fix testing element is a part of array