add testing libraries
fix relation
add factories
add spec
Merge pull request #1 from ainame/add-spec-tests

Add spec tests