fixed python and perl tests outputs