Write task rspec tests