Test emit

This adds some testing to the emit function, basic stuff to ensure it's actually sending out the objects it promises to.