add junit support for midway and e2e tests