adds global stats module and test