Fixed Agent test broken when updated to use NullThreadPool.