renamed 'increment' method to 'consume' and adjusted tests