Cleanup and flush out ServiceMonitor and its tests.