Fix factory and spec
Merge pull request #194 from murooka/fix_spec

Fix factory and spec