write to file for query tests added