[Cookbook][Form testing] update sf2.3 way to add custom tupe

Since 2.3, we can't use anymore $this->factory->addType() t add custom Type to factory. We have to use PreloadedExtension class.