introduces promise mock