Added test for using a function in the where clause.