erlang: reimplemented write_go_test and write_step_test using opcodes