Added rspec tests.