Implemented presence unit tests