Review Request 1679: Move generic code to lmi.test.util