Added emit() to Meta module

And lots of testing including roundtrip tests