refactor: put template-generation into separate module
refactor: scope config tests under 'config'