[karma] fix tests in production mode