test(alert): add more coverage and other changes

Closes #1489