Add rspec tests for converter.