Unit testing helpers
********************
