Fixed a bug in ProtectedArea.java function disconnectWord(). Added tests
for UndoRedoController.java.