added rspec
added some tests