Add test cases about tasks