Added Notifcation tests and Fixed wrong logic for event retrieval from cache
Merge branch 'new_sync_cache_logic' of https://github.com/pryv/sdk-objectivec-apple into new_sync_cache_logic