Fix test case (NS), and improve error reporting (existence checks).