Improve test cases for self.destroyUI and self.destroyUIs