refactor tests to cater for ArrayUtil duplication