unit test for tokenDetailURL