Implement binary emitter for test.