add assertion in markTask