Presence: implement a proper garbage collection
Presence: fix tests with the new garbage collector