Fix statistics library for testing