bug fixed: consider if no template is declared
change compile policy for test