[specs] add test to ensure that task api doesn't require activity_type