Added cache test from dbManager
getEvents no longer returns null

When calling getEvents and getting events from the cache no longer
return null when there is no events for a resource - now returns an
empty list.