Tests - fix warnings on some perl versions