adds tests for Alert

Close #27