Added rspec and wrote some tests