Add test for monitoring a running task