Test for token lifetime