Tests for StatD