hm "vacuum" is a little heavy for a test?  is there a PG command that we can see if there's an ongoing transaction or not?  like select from xact_status or whatever that view is, I always forget the name..