added hub module
added tests for hub interface