I implemented `validator` in `set()`. Added a unit test, so there's 1 for `get()` and 1 for `set()`.