refact(chapter-10): add helper directives and tests for field