Various testing utilities.