Refactored integration test. Added junit xml output.