Add rspec support and simple tests.