test factory (broken)