fix various perl version dependent tests