Be aware that working with mains voltage is very dangerous. You may not have the experience necessary and should consider leaving this to someone else.
Some people build their own general purpose test setup. I built something similar to this a long, long time ago. I learned about the incandescent series trick after I built it.
It is very important to limit the risk of shock and fire. The isolation transformer will reduce the risk of shock. You want fuses with a much smaller current rating than your house breaker.
F2 must be sized to protect the Variac and isolation transformer. Large isolation transformers are very expensive, so you need to pick something that will meet your needs, but not cost too much.
If you want to power something with unknown status, open SW2 first. If your device under test is shorted, the worst that can happen is the lamp will light. Close SW2 once you are confident that your device isn't shorted.
The Variac autotransformer can be used to verify that your device will work with other than nominal input voltage. Many Variacs will allow you to boost the voltage slightly.

simulate this circuit – Schematic created using CircuitLab