Re-implemented beforeSend tests for change in function parameters
Got and to work with and without stream