Since #8296, fgSetColor is no longer a global. These commands were probably left out from the change as an oversight, so some tests have been added to make sure this won't happen again. (cherry picked from commit d1af9587b8)
d1af9587b8