Move the stats tests into separate files, fix indentation.