Type fixes in tests, figured out FillArrayData semantics
Created a useful main test method