Fixes run of the testsuite in the pre-extension model
Closes #2
NOTE: also makes CDB_TableMetadata triggers still functional when user quota and varnish invalidation functions are missing from the database (currently installed by cartodb ruby)