Fixing factories test