Fix test drop non-user defined stream by changing the exception type
Add the JUnit XML reporter paremeter