more explicit in switches in logic for isScreenLocked function. added test for checking unlocked state.