add (totally not comprehensive) test block

discussion was here: https://github.com/Homebrew/homebrew/pull/31196#discussion_r18197926