Fix title update to update title for the correct link
Add unit tests for tab model reloading

- updateInvalidUrls doesn't need to write invalid title to the database.
  That was causing url to be wrong in cases after this one.
- updateValidUrls and updateTitle need to wait url to be
  written to the database.
Merge pull request #94 from rainemak/addTabModelReloadTests

Add tab model reload tests