added test for unmarshaling counters