These tests seemed a little over-specified and were failing on the CI server. Reducing the specificity a little to try to get them to pass.
Addresses an issue where it can be unclear at times exactly which part of the (un|re)installation processes is reporting an error. See https://github.com/caskroom/homebrew-cask/issues/30968
brew tests