Add spawn test. Hangs most of the time on linux x64 at least.