Fixed #45 spawn updated and test cases added