Finishing AlertMessage and adding tests.