added a necessary closePM() to remove dependency between tests
Merge milestone