added rspec tests for tasks