add rspec and simple tests