Reading last tweet ID from logfile, with tests