Added tests for all machine instructions.

The machine now behaves itself, I believe.