Final tests for stats queries, helper functions; includes test data in resources folder