There is a diagnostic mode that tests various aspects of the hardware - it might test this button. However, I think you get to it by holding function on bootup.
So if it’s just purchased, I would exchange it.