Add tests for AutoPersistCollection scenario