Implement SAFE_MODE task
The purpose of this issue is to create a unit test to make the operation mode change to SAFE_MODE when xtest is running.
The purpose of this issue is to create a unit test to make the operation mode change to SAFE_MODE when xtest is running.