queue: added some tests for Handler.Stop and Handler.DryRun