WORCESTER — A former cocaine dealer-turned-police informant testified Monday that John Fredette told him he planned to kill Kevin Harkins if Mr. Harkins did not follow through on an agreement to provide false testimony in a drug case that was pending against Mr. Fredette in 1994.