Replace anonymous test functions w/real ones.

BugzID: 27037