We should add specific tests for the intended behavior of `encodeKey` and `decodeKey` in `lib/controllers/stats.js`.