Bug 991653 - [v1.3] Backport test_power_button_long_press.py test to v1.3

This includes a commit from another outstanding PR. I will rebase this once that PR has been merged.