added tasks_spec.rb tests