Add APIMonitor tests