Add more advanced test case for task creation.