Fix build of AIO tests with -DDEBUG
Also, redefine some constants for clarity. No functional change.
MFC after: 1 week