case sensitive/insensitive test for contains

and a fix for ilike in PostgreSQLAdapter