Add a unit test for security token in profile.