Add assertion for setting an ActivityMonitor