Logic for brew class with lots of basic tests.