We need to check the session_name key is not in the dict, rather than checking it has no value, otherwise the test fails.