Failing test case for counter updates.
Fixing counter propagation from node to endpoint.
A more complex test case for counter updating.
Fixed some hlint stuff.