add keyboard interrupt hook test