Add test for when last logged activity is in future; Change comparison to use pure timedeltas

This should test for the future-activity case. Also changes comparison to use timedeltas, avoiding two problems:

 - Cases where last activity is in future
 - Cases where last activity is over 1 day old but the seconds value of the timedelta is less than EXPIRE_AFTER