check if device is locked before starting the test