Test also for pg getLastInsertId()