Add test for dynamic token timeout