Test deleting node
Tests for discard changes