- QA: add apidoc
- reindent closure code
- refactor @values tests into separate test cases by inheritance