got testspawn.cpp to work