We currently relies on logs and NotAllowedError to test the error cases for CtapHidDriver. It is not ideal since it requires to read the logs. We should figure out a way to reflect the error message into the tests so we don't need reading logs to verify its behaviors.