Fix and add specs.

I couldn't run original specs. This commit changes the spec directory
structure and adds a dummy rails app in spec/dummy, while introducing
some new specs. Also added default rake task to run specs.