A non-transitory computer-readable medium embodying programmed instructions which, when executed by a controller for testing a two-phase cooling device, the two-phase cooling device having a housing surrounding a cavity and a cooling medium within the cavity, direct the controller to:
- control a temperature of ambient air of the two-phase cooling device such that the cooling medium within the cavity undergoes phase transitions from its liquid state to its solid state and/or from its solid state to its liquid state, while monitoring a first temperature of the two-phase cooling device;
- determine whether the monitored first temperature fulfills a predetermined criterion;
- and
- determine that the two-phase cooling device is overfilled with the cooling medium if the predetermined criterion is fulfilled.