Fix cache measurer. Improve coverage.

Close #8.