publish and promote function related to cv now return tas_id.

So now it waits for task to complete only if synchronous=True and
returns a task_id.
Merge pull request #1540 from kbidarkar/fix-taskid

publish and promote function related to cv now return tas_id.
Make test more strict

PR #1538 was made in an attempt to get PR #1536 to pass. That was a mistake, as
PR #1536 is broken.

Revert ea7c20d3983507b655cd8d6e9e77461a1b0d32da
Merge pull request #1539 from Ichimonji10/make-test-strict

Make test more strict