Added the function for stopping a stream. Implemented the fake server. Added tests for the server.