Stream tests and API functions done.