make consumption config a class, fix tests