TrialFunction -> TestFunction

Bad forms that I caught when doing the upstream compatibility changes.

@kynan