Utilities to assist with testing