Finished processor unit tests, and corrected some bugs found while setting up the tests.