add unit tests to hub