added functions for create and update alerts
more assertions for alert with conditions test
fixed api version to 2 when using alerts
integration tests to create (empty) and list alerts