[SJS-251]:
- Add test for sendStream callback
- Add condition check to avoid resolution undefined