[tests] fixes TB demo gui blocking error in testing mode