Unit tests for keepalive management in authentifier (WIP)
Merged with upstream