fix spawn tests