Added more tests.

Adds tests to validate different initialization methods as well as that the
stream functionality works.