Added type=button to close button.

Added unit test to test that close button has type=button.