test output & template from files