KAFKA-1747 TestcaseEnv improperly shares state between instances; reviewed by Neha Narkhede