Maybe the power button on the case of the computer is defective. There probably is a contact all the time.
In order to test it you have to disconnect the power button from the motherboard and test it with a Multimeter for continuity. You can use the Ohm measurement unit.
Please take a look at this video tutorial: