Adding tests and docs for node threshold analysis