more work on arrays and tests