add tests for Where class