Spawn tests

adding unit tests