Added ppu_test.go test file and tests for Controller, Mask and Status
registers.

Fixed a number of bugs found while testing.