Transaction tests for postgres