Added some rspec tests.
Added integration tests.