Test promise.done() synchronously by replacing Y.soon