Write test for badges