add isTesting flag