swap TrialFunction and TestFunction variables to match naming convention