Fix broken test — it's not possible to retrieve permanent IDs for managed objects without a context