[debug stack] Update docs, add tests