how to toggle functional test base on toggle information.