Adds factories to specs