added some testing helpers