erlang: reworked read_step_test to use opcodes