adding rspec
added tests