Fix style after review
If auth is provided it *must* be a NodeAuth* object
Add test cases for _get_and_check_auth