Fix test_get_dates() to use GDate method
Fix test_get_dates() to use GDate method

This test was using g_free() to free dates. Also was sorting GDate
with g_strcmp0.

freedesktop-unofficial-mirror/telepathy__telepathy-logger,freedesktop-unofficial-mirror/telepathy__telepathy-logger,freedesktop-unofficial-mirror/telepathy__telepathy-logger