added unittests for the badge helper