Test for spawned units
Includes some cleanup voodoo