Tests badges, and a fix for `length`