Fix a hidden bug for DIO command for both arms.
Fix bool operation in test files.