Test replacement for captureTail()