Added JUnit tests for alerts and transactions.