Add conmock test for badge.image controller.