Hardening the serveCommandTests where tearDown() causing log assertion issues