safelyPromisify(): add coverage for isDomain=TRUE.

Adds a test for safelyPromisify() for the case in which isDomain is true.