add tests for the stats publisher