fix switch mode signal name
change default mode switching signal to SIGUSR2
add tests for posix signal listener