Add test mode conditionals to the alternatives state

Fixes #13450