Test pass with where clause