add test routine to Join and Exit syscall
add Join and Exit syscall handler