integration test for alert, need more math here