Added tests for FOFDispatcher getTask method