Fix spawn timeout
Code format
Add exec test