Add rudimentary tests of local arrays