require tests: fix for sjs: hub when running under karma