Array tests

I wrote some tests mostly based on the Array documentation for issue #567