simplify recursive template compilation, remove unused test files