Refactor tests a bit.

This separates the main API tests from those that test low-level
NCStream things.