adding rspec tests
Updated spec tests