create task action and test it