update mock for promises