unit: lots of unit test helpers