Miscellaneous test fixes

(Needed for python 2.7 / no elasticsearch environnement, but also
 because of the safe signals removal)