Added tests for the close button