Added expiration date handling for allocate, Resources are not removed from slice when expired
InMemoryDB now throws sqlexcepetion instead of returning null for non existent
restored timezone for date format, otherwise tests fails