more tests, refactored spawn to take in an entire configuration