fixed bug in postgresql exception test