Fixed logic
Added publish and then download test case