moved badge statistics to badge model, added a test