KFSUPGRADE-1002 Add unit test for markPaid