changed to get testquery to work