tests for opcodes