updated alertcounter unit tests