Add rspec test for list