Unit test enterTaskManager and leaveTaskManager in app_window_test