improving brew delegate unit tests