spawn/1 function in machine, with first test