Added missing test for the AliasPathStackResolverServiceFactory Also fixed var declaration in factory.