Add tests for ArrayObject::append

Check that ArrayObject::offsetSet is called when calling ArrayObject::append.