Update tests.py

Added support to generate Junit like xml reports