Fix Consumes in base classes and add test for this case.