Refactor spec

I did refactoring spec files.
However, behavior of the existing test is not changed.