Refactored out testing contracts.