added rspec tests
added rspec & tests