fix close button
fix defect where we try to call a 1-argument to_s on a string
add a test for the recent defect with dates and strings