Added test for invalid opcodes in compilation of primitive expressions.

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