Refactored the home_spec.rb file, added tests to delete a task