Added some tests with Rspec.