cleaned up testSQLWhereParser by adding a commonly used function.