I could also create an empty (non-null) TaskMetrics in each of the relevant tests. What do you think?