add tests for fgthread
forgot to test kill of fgthread