stats: fix tests with multiple workers