Utilities around testing.