Moved last_update_times outside main() for unit tests
Merge pull request #245 from worr/fix_unit_tests

Moved last_update_times outside main() for unit tests