testing/test.pg_sql ends with an error, but not at the end of the script. I believe that while the error is correct, the rest of the test does not get executed. Ordering differently might solve the problem, together with a catch in the install script for the error.