Fix badge recommendations api test.