Unit testing utilities