Adding new tests for alerts. Actually copying tests from .Net to Java