[Process] Add unit tests for #7865