test_stats() added