Add bug verifcation to test_queries

This commit adds verification of the bugs listed in the queries.json
listed in the config file.