rspec working, added some tests