Fixed a few bugs in the process topic logic. Added last of the process topic tests.