Pass the correct parent to MedicEditor appear as modal window.

- Fix tests.

Change-Id: Ic1f5464b2646b5480480372f08c291b5038bbcdc