Adds tests for stats.