Bug 1109855 - Fix building of APZC instances via the tree manager for gtests. r=botond

In testing scenarios ensure that we always create a TestAsyncPanZoomController
so that we can unconditionally cast to it and use the extra helpers on that
class.