Add test for `Counter.update()` and make it work as intended