factory use spec directory