Fixed erbdrv_epgsql_test warnings and bugs