Test correctly verifies the wrapper creates a callback and uses the promise for it.