Add tests to validate array updates.