Add function to read messages from NCStream.

Also update/refactor tests.