adding querywid test functions