Started adding test case for emitting endpoint types.  Still has lots of bugs.