#439 Add Rspec tests