Fix tests compile errors.