Fix badge model tests.