Added test case for Junit reporter, fixed a couple issues with Junit reporter