Adds assertion to tests using boolean equality in where clause.