fix warnings and ensure no task active after tests run

Change-Id: I7f59d73e4f86a3e5a1edbb09a0b294b33d5d4721
1 file changed