Replace unit tests with rspec tests