Tests, bugfixes

Added testing for opcodes.
Added testing header.
Fixed some bugs in cpu.c and opcode.h.