Added test and fixes the problem.

Fixes https://github.com/kaspernj/awesome_tasks/issues/63