Added some testing helpers.