Fixed FactoryBehaviours not getting called