Scenes and Routines aren't changing modes

Try disabling the routines for all of your non-test modes, then run the scene, it maybe that your non-test mode routines are running immediately after you activate a test scene. It’s hard to know if this is the issue without knowing your routines.

You could also use @Mariano_Colmenarejo Virtual Calendar Mc to setup your time periods.