tearDown cleanup. Fixed bugs regarding content and selection order. Hopefully more robust overall.