added tests for nested transaction() calls