query test tests value of return