For #794: Unit tests for alert levels and instance annotation