spwn: change made according to reveiw in tests
spwn: code style fix