Added support for testing for expected operand types for an opcode.

Signed-off-by: Jakob Brandsborg Ehmsen <jakobehmsen.github@gmail.com>