add test for executor cleaning up completed tasks

Signed-off-by: Momchil Atanasov <m.momchil@gmail.com>