Adding unit test for ArrayTools
Some corrections