Complete the test for task scheduler