query wrapper test