Fix skipping of tests needing a postgresql database