Added missing line to test for bad legend format