Added functionality and tests to make sure no stream is created without

Made sure that a resource id was given when creating the stream