Adding favourite_spec.rb
Checking for nil