add test code from play template-compiler