Add tests for findnss(), add some docstrings.