Fix EZP-21671: add tests for Promise part of the CAPI
dealing with q