Unit test for   value query