added some testing, both cucumber and rspec.