Add tests for utils.countThen()

I saw that the `countThen()` function wasn't covered by the test suite, so I added two basic tests.