Updated rspec tests according to end of chapter exercises