Fixing bug in kernelmanager tests that was causing tests to hang.

When calling restart and the interrupt quickly, the test suite
was hanging.  A simple time.sleep(1) fixes the problem.