A fake Promise implementation, for testing purposes