Add test mode conditionals to the alternatives state
Merge pull request #13453 from basepi/alternativestestmode13450

Add test mode conditionals to the alternatives state