Refactor unit tests. Add ClassRule for single-broker Kafka server