Drop the database on signout and extend tests
Remove redundant 'contacts' global variable and fix tests