This test verifies that the stop streaming API endpoint works correctly.
Test the API endpoint directly: