Hi Nishant, I have updated the test patches by adding a ROLLBACK command before DISCONNECT. Please find the latest test patches for master through REL_16 (v4_test) and REL_15 through REL_14 (v4_test_v15).
I am also reattaching the v5 source code patch, which is applicable to all active branches (master, REL_18, REL_17, REL_16, REL_15, and REL_14).