adding querywid and querywidmaster test functions