bug fix. alert message not visible. add test.