Added task creation and guard rspec test.