refactor emitcode tester
grappalog refactor