Fixed tasks_controller_spec.rb errors