Fixed tests to accomodate new attribute in badge model