replace sed with perl in two tests