Thermocontroller for testing molds