Fixed regexp validation tests. Added test to facts_test
Added a handler for PSQL regexp error for the regexps that are valid in Java but invalid in PostgreSQL