Unit testing PostgreSql tables and functions