add test for where query