tests for array, and started tests for activerecord