added test file, and changed otrs.generatestats script