Bug fix. Clicking the check mark should decrease the counter. Added test to check the counter works and changed the way pending todo items are counted.