Miscellaneous testing utilities