fix creating tasks test to catch border case