devilry_detektor: Simpified the task logic.

See #595.
devilry_detektor: Fixed tests.

See #595.
devilry_detektor: Fixed tests.

See #595.