Split out unit test util macros