add test factory