Add test code with docs and template dir