test adjustments

implementing the test for prefixquerytest