Added tests for count function with where clause