Running any interesting test there would require setting up a temporary PostgreSQL server, which could lead to all kinds of complications, I think. `check_postgres` already comes with a sizable test suite that can be run during the build.