Since you're now relying on the return value of deduce_family rather than it just being a filter, you should check the return code in a separate test I think.