Improve backtraces by defining a named function for each test.