Wrote Tests and Fixed Some Processor Bugs