fix unit tests, add rspec and capybara