Is it possible/feasible to add a unit test for this?