[tor-commits] [gettor/master] Add tests for database functions