Deleted commented out value and removed DiscardChangesCheck function

Commented out _testCaseNumber to find where it was used and forgot to
delete it after fixing where it was used.
Forgot to delete DiscardChangesCheck after migrating the internal code
back to CloseCurrentTab