do not run tests without karma being configured

fixes a problem with modules that don't have karma configured, but
karma is run by the shared config during development.