Test dumping doc with a callback for growable results