added tests to make sure the processor handler works and commits/rollbacks correctly. Also made it again more fault tolerant i think