Adding unit tests around card display dates.  Fixing a bug with card display dates found by that test.