Tweaking brew model. Adding basic tests.