Test close and clear form