Add test for nested transactions