Shared utilities for testing contracts. This is not part of the tests module because it is made public for other crates to use.