tests

added some rspec tests.