rewrote isScreenLocked
test fix