Fix configs and add karma configuration.