every 5 minutes: loop all entities if loop-entity is named "test": add loop-entity to {test} if {test} is equal to {test.spawn}: kill loop-entity delete {test}