add test cases for task manager

Change-Id: I6e32ed5d28978392a30dbeda7b4b15d9677b2320