unit test for postgres transaction