add tests to alert component