fix test compile errors