wrote missing test for BadgeREpository