In this commit, we alter our mock heuristic to also take in a quit chan. It's possible that at the end of a test the agent is blocked on a NeedMoreChans/Select call as their mock implementations use channels. To prevent this, we use the agent's quit chan so that the heuristic can safely exit once the agent does.