setup factory folder, and spec helpers