We have several TB solenoids to work with & all can be made to function properly on-the-bench, but then act erradically [hit or miss] when installed in the vehicle.
Are you torqueing the bolts in the valvebody when you install it to the correct spec or just bolting them down?