ManagementContext tracks locations
EntityManagerTest: code tidy