improve system test. add signal handling