Adding tests and code for spawn