promisify to fix tests