KAFKA-328 Write unit test for kafka server startup and shutdown API; reviewed by Neha Narkhede