added rspec testing stuff
added some unit tests