add controller unit test for close alert