flush stats in test
fix spec