quartz/tests: Print the correct function name when tests fail.