bound queries in init_test_db to common ancestor to ensure consistency; added a new service; minor bug fix