Use state of case sensitivity toggle even when find bar isn't open
Add unit test for remembering regexp state for Find Next after search bar is closed.
Also refactors out some common code from the case sensitivity test.
Merge pull request #7042 from adobe/nj/issue-7040

Use state of case sensitivity toggle even when find bar isn't open