Karma config and tests update