added rspec tests for list class