Test that the form following a template element properly gets parsed.