Add validation to def-stream-fn to aid in debugging when given bad input
Update test_harness tests so they continue to work after refactoring changes