Don't expose certain methods on hub methods.

- Don't expose methods on object or events.
- Added unit tests.