Updated test and added closePatch()