function testContract(address contractAddress) public { require(contractAddress != address(0), "Contract address cannot be zero"); // ... rest of the function remains the same }