add test to task_mock module

Signed-off-by: Wilfried Chauveau <ithinuel@gmail.com>