anchor.diff:      ok = tts_session:close(Pid).
   
   token_login_test() ->
  -    {ok, Pid} = tts_session:start(?ID),
  +    {ok, Pid} = tts_session:start_link(?ID),
       Subject = "foo",
       Issuer = "https://bar.com",
       Token = #{id => #{sub => Subject, iss=>Issuer}},
  
positive.code:     end.
  
  get_set_max_age_test() ->
      {ok, Pid} = tts_session:start(?ID),
      {ok, _} = tts_session:get_max_age(Pid),
      ok = tts_session:set_max_age(1000,Pid),
      {ok, 1000} = tts_session:get_max_age(Pid),
      ok = tts_session:set_max_age(1,Pid),
      % This will raise an error as tts_session_mgr does not exist
      % the cooperation between session and session_mgr
      % is part of common tests, not unit testing
      timer:sleep(5),
      try tts_session:get_id(Pid) of
          _ -> erlang:error(not_stopped)
  
negative.code: same_ua_ip_test() ->
      IP = {123,123,123,123},
      UA = <<"some browser">>,
      {ok, Pid} = tts_session:start_link(?ID),
      true = tts_session:is_user_agent(UA,Pid),
      false = tts_session:is_user_agent(IP,Pid),
      true = tts_session:is_user_agent(UA,Pid),
  