Tested usage of ExPendingCommandStateFactory2 in NewInstanceFactory2 and
CanvasModel and made adaptions in the usage.

Signed-off-by: Jakob Brandsborg Ehmsen <jakobehmsen.github@gmail.com>