started writing missing tests for BadgeRepository