Badge generation test