Makes unit test errors more consistent.